#ifndef KEPOPUPTOAST_H
#define KEPOPUPTOAST_H


#include "../../../../kegui_global.h"

#include <QDialog>
#include <QHBoxLayout>
#include <QLabel>
#include <QEvent>
#include <QMouseEvent>


#include <QString>
#include <QWidget>

#define Yoff_pop_Tmp 16


class KEGUI_EXPORT KePopupToast : public QWidget
{
    Q_OBJECT
public:
    explicit KePopupToast(QWidget *parent,const QString &text);
    ~KePopupToast();
public:
    void showAt(int msec,const QPoint &point);
    void mousePressEvent(QMouseEvent* event)override;
    // void paintEvent(QPaintEvent *) override;
public Q_SLOTS:
    void timeoutClose();
Q_SIGNALS:

    // private:
    //     QString label;
};

#endif // KEPOPUPTOAST_H
